home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_36198.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  48 lines

  1. -- card: 36198 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: SortReals
  6.  
  7.  
  8. -- part contents for background part 5
  9. ----- text -----
  10. SortReals
  11.  
  12. -- part contents for background part 6
  13. ----- text -----
  14. The SortReals XFCN will sort real numbers contained in a field into ascending order.  The numbers should be separated by spaces.    (The numbers are "words" in HC parlance.).  SortReals works on any Mac.  If you are using a Mac II then see SortRealsII*.
  15.  
  16. This XFCN is FreeWare.  You may use it freely in any of your stacks, for your own, or
  17. commercial use or extend its capablities to return averages or whatever.
  18.  
  19.         SHOW ME YOUR XCMD
  20.              SOURCE CODE!
  21.  
  22. SortReals was written in Lightspeed‚Ñ¢ Pascal and SortRealsII was written in MPW Pascal.
  23.  
  24. George Coyne
  25.  
  26. GENIE: GWCOYNE
  27. CIS: 75776,1463
  28.  
  29. -- part contents for background part 7
  30. ----- text -----
  31. Syntax:
  32.  
  33. SortReals(<input>) 
  34.  
  35. Where:
  36. input:  Any HyperCard Container
  37.  
  38. The functions return a sorted list.
  39.  
  40. Example:
  41. put SortReals(input) into output
  42.  
  43. output may be the same container as input.
  44.  
  45.  
  46. -- part contents for background part 10
  47. ----- text -----
  48. 38